package com.l024.easyandroidlib.dialog.view;

import android.app.Dialog;
import android.content.Context;

import com.l024.easyandroidlib.R;


/**
 * @author wu_ming_zhi_bei
 * @date 2021/2/21 22:48
 * @Notes 加载弹框
 */

public class LoadingDialog extends Dialog {
    //private TextView mTvText;

    public LoadingDialog(Context context) {
        super(context, R.style.LoadDialog);
//        getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
        setContentView(R.layout.dialog_loading);
//        setContentView(R.layout.dialog_loading_lottie);
        //mTvText = findViewById(R.id.tv_text);
        setCanceledOnTouchOutside(false);//点击屏幕不消失
        setCancelable(false);//点击返回不消失
    }

    public LoadingDialog setMessage(String message) {
        //mTvText.setText(message);
        return this;
    }
}

